﻿// MIT License Copyright 2014 (c) David Melendez. All rights reserved. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

#if net45
namespace ElCamino.AspNet.Identity.AzureTable
#else
namespace ElCamino.AspNetCore.Identity.AzureTable
#endif
{
public static class Constants
    {
        public const string ETagWildcard = "*";

        public static class AppSettingsKeys
        {
            public const string DefaultStorageConnectionStringKey = "StorageConnectionString";
        }

        public static class TableNames
        {
            public const string RolesTable = "AspNetRoles";
            public const string UsersTable = "AspNetUsers";
            public const string IndexTable = "AspNetIndex";
        }

        public static class RowKeyConstants
        {
            #region Identity User
            public const string PreFixIdentityUserClaim     = "C_";
            public const string PreFixIdentityUserRole      = "R_";
            public const string PreFixIdentityUserLogin     = "L_";
            public const string PreFixIdentityUserEmail     = "E_";
            public const string PreFixIdentityUserName      = "U_";

            public const string FormatterIdentityUserClaim  = PreFixIdentityUserClaim + "{0}";
            public const string FormatterIdentityUserRole   = PreFixIdentityUserRole + "{0}";
            public const string FormatterIdentityUserLogin  = PreFixIdentityUserLogin + "{0}";
            public const string FormatterIdentityUserEmail  = PreFixIdentityUserEmail + "{0}";
            public const string FormatterIdentityUserName   = PreFixIdentityUserName + "{0}";
            #endregion

            #region Identity Role
            public const string PreFixIdentityRole = "R_";
            public const string FormatterIdentityRole = PreFixIdentityRole + "{0}";
            #endregion
        }
    }
}
